package com.ruan.dao;

import com.ruan.entity.Orders;
import com.ruan.query.OrdersQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName:OrdersMapper
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/7/3 22:49
 **/
@Repository
public interface OrdersMapper {
    int addOrders(Orders orders);

    List<Orders> getOrdersList(OrdersQuery ordersQuery);

    int deleteOrders(Integer id);

    int deleteOrdersByIds(@Param("ids") Integer[] ids);

    List<Orders> getAllOrdersList(OrdersQuery ordersQuery);

    int getOrdersId();

    int paySuccess(Integer id);

    Orders getOrdersById(Integer id);
}
